﻿using Blog.Core.Domain.Model.User;
using Blog.Core.DTO.ViewModel.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Core.IServices.IUser
{
    /// <summary>
    /// 权限信息服务接口
    /// </summary>
    public interface IPermissionsService:IBaseService<Permissions>
    {
        /// <summary>
        /// 树形格式显示权限
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<List<ResponsePermissionTreeDTO>> GetPermission(int id);
        /// <summary>
        /// 树形方式显示用于列表
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<List<ResponsePermissionListDTO>> GetPermissionList(int id);
    }
}
